package demo03;

import java.util.ArrayList;

/**
 * Created by hp on 2020/2/26.
 */
public class Classes {
    private String cname;
    private ArrayList<Students> students = new ArrayList<>();

    @Override
    public String toString() {
        return "Classes{" +
                "cname='" + cname + '\'' +
                ", students=" + students +
                '}';
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public ArrayList<Students> getStudents() {
        return students;
    }

    public void setStudents(ArrayList<Students> students) {
        this.students = students;
    }

    public Classes(String cname, ArrayList<Students> students) {

        this.cname = cname;
        this.students = students;
    }

    public Classes(String cname) {

    }
}
